package com.etl.dataflow.scheduler.admin.controller;

import com.etl.dataflow.common.response.R;
import com.etl.dataflow.scheduler.admin.entity.request.PageRequest;
import com.etl.dataflow.scheduler.admin.service.ExecutorInfoService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author dx
 * @since 2022/4/21
 */
@RestController
@RequestMapping("/admin/executor-info")
public class ExecutorInfoController {
    @Resource
    private ExecutorInfoService executorInfoService;

    @PostMapping("/paging")
    public R paging(@RequestBody @Validated PageRequest pageRequest) {
        return executorInfoService.page(pageRequest);
    }

}
